package com.ruoyi.project.kkad.channelswitch.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 渠道配置对象 channel_switch
 * 
 * @author shixiangwen
 * @date 2020-04-13
 */
public class ChannelSwitch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 渠道ID */
    @Excel(name = "渠道ID")
    private String channel;

    /** 渠道名称 */
    @Excel(name = "渠道名称")
    private String name;

    /** 截止日期 */
    @Excel(name = "截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 创建用户 */
    @Excel(name = "创建用户")
    private String createdUserId;

    /** 应用 */
    @Excel(name = "应用")
    private String appId;

    /** 指定版本 */
    @Excel(name = "指定版本")
    private String version;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChannel(String channel) 
    {
        this.channel = channel;
    }

    public String getChannel() 
    {
        return channel;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setCreatedUserId(String createdUserId) 
    {
        this.createdUserId = createdUserId;
    }

    public String getCreatedUserId() 
    {
        return createdUserId;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("channel", getChannel())
            .append("name", getName())
            .append("endTime", getEndTime())
            .append("createdTime", getCreatedTime())
            .append("createdUserId", getCreatedUserId())
            .append("appId", getAppId())
            .append("version", getVersion())
            .toString();
    }
}
